﻿<%@ Page Language="C#" MasterPageFile="~/master/MasterPage.master" AutoEventWireup="true" CodeFile="PesquisaFontesModulo.aspx.cs" Inherits="page_PesquisaFontesModuloTeste" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table cellpadding="2" cellspacing="0">
<tr>
<td>
   
   <fieldset>
   <legend>Filtro</legend>     
    <table style="font-size: 10pt;" cellpadding="2" cellspacing="0">
        <tr>
                
        <td>
            <asp:Label ID="LblModulo" runat="server" Text="Módulo:"></asp:Label>
        </td>

        <td colspan=2>
        <asp:DropDownList ID="DrpModulo" runat="server" 
                onselectedindexchanged="DrpModulo_SelectedIndexChanged" 
            AutoPostBack="True" Width="400px" />
        </td>

        </tr>

        <tr>

        <td>
        <asp:Label ID="LblFonte" runat="server" Text="Fonte:"></asp:Label>
        </td>

        <td>
        <asp:DropDownList ID="DrpFonte" runat="server" 
                onselectedindexchanged="DrpFonte_SelectedIndexChanged" 
            AutoPostBack="True" Width="200px"/>
            <asp:TextBox ID="TxtFonte" runat="server" Enabled=false></asp:TextBox>
        </td>
        </tr>

        <tr>

        <td>
        <asp:Label ID="Lbl" runat="server" Text="Filtro:"></asp:Label>
        </td>

        <td colspan=2>
        <asp:DropDownList  ID="DrpFiltro" runat="server" Width="400px"  />
        </td>
                
        </tr>


        <tr>
        <td align=right colspan="2">
        <asp:Button ID="btnPesquisar" runat="server" Text="Pesquisar" onclick="btnPesquisar_Click" />
        </td>
        </tr>
    </table>
    </fieldset>

</td>
</tr>

<tr>
    <td colspan="7">
        <asp:GridView ID="GrdFontes" runat="server" AutoGenerateColumns="False" CellPadding="3" ForeColor="#333333" GridLines="None" Font-Size="10pt" AllowPaging="True" onpageindexchanging="GrdFontes_PageIndexChanging" Width="800px" onrowdatabound="GrdFontes_RowDataBound">
         <FooterStyle BackColor="#507CD1" Font-Size="10pt" Height="2px" Font-Bold="True" ForeColor="White" />
         <RowStyle BackColor="White" />
         <Columns>
             <asp:BoundField DataField="NomeTermo" HeaderText="Nome Termo:" ControlStyle-Width="150px" ControlStyle-Height="2px" 
                 SortExpression="NomeTermo" />
             <asp:BoundField DataField="TermoSugerido" HeaderText="Termo Sugerido:" 
                 SortExpression="TermoSugerido" />
                 
              <asp:HyperLinkField DataNavigateUrlFields="Id" 
                 DataNavigateUrlFormatString="FontesDetalhe.aspx?id={0}" 
                 HeaderImageUrl="~/images/search.gif" HeaderText="Detalhes" 
                 Text="Detalhes" />
         </Columns>
         <PagerStyle BackColor="#333399" ForeColor="White" HorizontalAlign="Center" />
         <SelectedRowStyle BackColor="White" Font-Bold="True" ForeColor="#333333" />
         <HeaderStyle BackColor="#333399" ForeColor="White" HorizontalAlign="Center" Font-Bold="True" />              
        </asp:GridView>
    </td>
</tr>
</table>

</asp:Content>

